<?php /* Smarty version 3.1.27, created on 2017-06-07 12:42:27
         compiled from "F:\wamp\wamp\www\mvc4.0\views\user\index.html" */ ?>
<?php
/*%%SmartyHeaderCode:167135937f4b3233b53_89919938%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fd82634915b1c0342430ee8f06faef1bdb369db1' => 
    array (
      0 => 'F:\\wamp\\wamp\\www\\mvc4.0\\views\\user\\index.html',
      1 => 1496839339,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '167135937f4b3233b53_89919938',
  'variables' => 
  array (
    'list' => 0,
    'v' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_5937f4b3325e97_74747555',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_5937f4b3325e97_74747555')) {
function content_5937f4b3325e97_74747555 ($_smarty_tpl) {

$_smarty_tpl->properties['nocache_hash'] = '167135937f4b3233b53_89919938';
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css"></style>
</head>
<body>
     <h1>用户列表</h1>
     <hr>
        <table border="1" width="800" cellspacing="0">
        	<tr>
        		<th>ID</th>
        		<th>姓名</th>
        		<th>性别</th>
        		<th>年龄</th>
        	</tr>
        	<?php
$_from = $_smarty_tpl->tpl_vars['list']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['v'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['v']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
$foreach_v_Sav = $_smarty_tpl->tpl_vars['v'];
?>
        	<tr>
        		 <td><?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
</td>
                 <td><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</td>
                 <td><?php if ($_smarty_tpl->tpl_vars['v']->value['sex'] == 0) {?>女
                     <?php } elseif ($_smarty_tpl->tpl_vars['v']->value['sex'] == 1) {?> 男
                     <?php } else { ?> 保密 
                     <?php }?>
                 </td>
                 <td><?php echo $_smarty_tpl->tpl_vars['v']->value['age'];?>
</td>
        	</tr>
        	<?php
$_smarty_tpl->tpl_vars['v'] = $foreach_v_Sav;
}
?>
        </table>
	
</body>
</html><?php }
}
?>